package com.isdepci.project.reference.domain;

import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 参考材料对象 reference_material
 *
 * @author isdepci
 * @date 2023-08-23
 */
public class ReferenceMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 类型(标准物质 2EEIO) */
    @Excel(name = "类型(标准物质 2EEIO)")
    private Integer materialType;

    /** 原材料 */
    @Excel(name = "原材料")
    private String material;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 经济部门 */
    @Excel(name = "经济部门")
    private String economicSector;

    /** 排放因子 (kg CO2e/unit) */
    @Excel(name = "排放因子 (kg CO2e/unit)")
    private String emissionFactor;

    /** 参考文献 */
    @Excel(name = "参考文献")
    private String reference;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterialType(Integer materialType)
    {
        this.materialType = materialType;
    }

    public Integer getMaterialType()
    {
        return materialType;
    }
    public void setMaterial(String material)
    {
        this.material = material;
    }

    public String getMaterial()
    {
        return material;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setEconomicSector(String economicSector)
    {
        this.economicSector = economicSector;
    }

    public String getEconomicSector()
    {
        return economicSector;
    }
    public void setEmissionFactor(String emissionFactor)
    {
        this.emissionFactor = emissionFactor;
    }

    public String getEmissionFactor()
    {
        return emissionFactor;
    }
    public void setReference(String reference)
    {
        this.reference = reference;
    }

    public String getReference()
    {
        return reference;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialType", getMaterialType())
            .append("material", getMaterial())
            .append("unit", getUnit())
            .append("economicSector", getEconomicSector())
            .append("emissionFactor", getEmissionFactor())
            .append("reference", getReference())
            .toString();
    }
}
